package com.qf.job;

import org.quartz.*;

import java.util.Date;

/**
 * @author sunyamei
 * @version V1.0
 * @Project quartz_demo
 * @Package com.qf.job
 * @Description:
 * @Date 2022/7/16 16:34
 */
public class MyJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //获取任务详情
        JobDetail jobDetail = jobExecutionContext.getJobDetail();
        //获取触发器
        Trigger trigger = jobExecutionContext.getTrigger();

        System.out.println("执行了..."+new Date()+"的任务...");
    }
}
